/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoeducation.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.campusinfo.common.persistence.Page;
import com.lczyfz.campusinfo.common.service.CrudService;
import com.lczyfz.campusinfo.modules.campusinfoeducation.entity.CampusinfoCollege;
import com.lczyfz.campusinfo.modules.campusinfoeducation.dao.CampusinfoCollegeDao;

/**
 * 学院管理Service
 * @author yt
 * @version 2017-10-18
 */
@Service
@Transactional(readOnly = true)
public class CampusinfoCollegeService extends CrudService<CampusinfoCollegeDao, CampusinfoCollege> {
	@Autowired
	private CampusinfoCollegeDao campusinfoCollegeDao;
	public CampusinfoCollege get(String id) {
		return super.get(id);
	}
	
	public List<CampusinfoCollege> findList(CampusinfoCollege campusinfoCollege) {
		return super.findList(campusinfoCollege);
	}
	
	public Page<CampusinfoCollege> findPage(Page<CampusinfoCollege> page, CampusinfoCollege campusinfoCollege) {
		return super.findPage(page, campusinfoCollege);
	}
	public CampusinfoCollege getByName(CampusinfoCollege campusinfoCollege) {
		return  campusinfoCollegeDao.getByName(campusinfoCollege);
	}
	@Transactional(readOnly = false)
	public void save(CampusinfoCollege campusinfoCollege) {
		super.save(campusinfoCollege);
	}
	
	@Transactional(readOnly = false)
	public void delete(CampusinfoCollege campusinfoCollege) {
		super.delete(campusinfoCollege);
	}
	
}